//import java.util.Scanner;

//import java.util.Scanner;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-08-29
 * Time:7:28
 */
public class Scan {

    public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);//System.in键盘输入
        System.out.println("请输入年龄：");
        while (sc.hasNextInt()) {

            System.out.println("请输入年龄：");
            int age= sc.nextInt();
           // System.out.println(age);
        }

        System.out.println("请输入姓名：");
        String str=sc.nextLine();
        System.out.println(str);


    }
}
